package com.smedi.ismedi.personnel.api.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(description = "行政组织信息返参")
public class HrOrganizationInfoResponse implements Serializable {
    @ApiModelProperty(value = "组织id")
    private Long hrOrganizationId;

    @ApiModelProperty(value = "组织全称")
    private String fullName;

    @ApiModelProperty(value = "组织简称")
    private String shortName;

    @ApiModelProperty(value = "组织编码")
    private String organizationCode;

    @ApiModelProperty(value = "组织类型")
    private String type;

    @ApiModelProperty(value = "组织类型含义")
    private String typeMeaning;

    @ApiModelProperty(value = "排序")
    private Integer displayOrder;

    @ApiModelProperty(value = "父节点组织id")
    private Long parentId;

    @ApiModelProperty(value = "父节点组织名称")
    private String parentFullName;

    @ApiModelProperty(value = "父节点组织简称")
    private String parentShortName;

    @ApiModelProperty(value = "子节点组织")
    private List<HrOrganizationInfoResponse> hrOrganizationChildren = new ArrayList();

    @ApiModelProperty(value = "是否为根节点")
    private boolean root;
}
